package com.cetool.autocms.pojo.request.login;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 用户登陆请求实体
 *
 * @author 戴越
 * @date 2021/11/9
 */
@Data
@ApiModel("用户登陆请求实体")
public class LoginRequest {

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", example = "daiyue1")
    @NotBlank(message = "用户名不能为空")
    private String userName;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", example = "123456")
    @NotBlank(message = "密码不能为空")
    private String password;

}
